<template>
  <div>
    <!-- <p>bar:{{ bar }}</p> -->
    <button @click="startUpFoo">我要更新foo</button>
    <DomChild v-bind="$attrs" v-on="$listeners"></DomChild>
  </div>
</template>
​
<script>
import DomChild from "./a4.vue";
export default {
  // props: ["bar"],
  components: {
    DomChild
  },
  methods: {
    startUpFoo() {
      console.log(this.$attrs, "123213213213");
    }
  }
};
</script>
